Adjusting code to PHP 5.3