Add in php 5.4 syntax needs work migrating over to exiting script