Stability and Hamiltonian formulation of higher derivative theories.