Fix for PHP Depreciated messages