Initial version of ccm_dered