Global functions inside a class file? This is not okay. Please make these into the anonymous functions available in PHP 5.3