Version Support

Some version support updates for older PHP versions.