Added cog_stop method