Added logging to CCD