ModifyCode extrapolated to separate class and starting of initial loop modifications