Add the nps_pgs_update_o2p function