Added the COEN functions again

Adding what got deleted