Remove use of $this inside callback to accomodate PHP 5.3