Restructured Code To Focus On RPRATRM amounts