Make it compatible with php 5.2