Backwards compatibility with PHP 5.1.6