Replaced callable with Closure since the former is not supported by PHP 5.3