Updates to PHP API