Performing outer repititions instead of inner