> I can not paste original code, as it is against org policy.
Then I'm guessing it's against org policy to ask questions on a public forum about a slightly modified version?

You're not following...