Cleanup c mode