Reimplement rp_prev calculation without using OLDsubjects