Added some more p4 functions