Set cc to zero at start and end