Update for new way of getting PHP arguments