Made the for loop shorter