Get rid of the for loop