Added cog-editing functionality