Fixed PHP 5.3 incompatibility with using $this in an closure and added a title constraint