FIX: Correcting the manual integral function for roex(pwt)