Remove dependency on PHP