PIPRA Algorithm