PHP 5.3 doesn't allow using  in call backs - claims it's not in object context even though the callback is defined in an object. So hack around that.