Changes for older version of PHP