Modify Code for RR