Updates to php code