Updated toCC

This version should work now