No longer using $this in closures under PHP 5.3 (fixes #20)