Switched several functions to use code-pog-fn.