Added arbitrary pnum support

untested