Compatible with PHP 5.2