Get rid of error_count from cpd
Move the chunk_list into fpd (from a global variable)