Added new prior code