Make a start on phpng compat