Get rid of for loops