Still working on the CCD equations. Seems to be a problem with the solver.