Added final cog_new compile code