Made more backwards-compatible.

PHP is dogshit