Added php functionality