Added debug info to be used with PHP 5.6+