Remove $this in closure, for PHP 5.3 compatibility