Snatch and remove c_main function