Added minimal CCD decoding functionality.