This needs to be changed as it will fail on PHP 5.3.