Fixed Poisson equation to be co-moving. Added an error check