Added initial PHP functions