Reduced lines of code for each iteration