Update to cpy_of and cpyn_of functions.