Added some debug output for CPM.