Compatibility for PHP5.2