Broke out cm_* routines from dctimestep