Workaround for PHP 5.3 closures not supporting $this passing.