Working on the CCD implementation