Fixed Issues with older version of PHP