Introduced structs to hold psi and psi0.