Changing syntax to try and make this work on PHP 5.3.3