Oh right. I originally added the decode global function here but decided to move it to it's own file instead. Thanks for pointing it out.