Using a for loop here made little sense. Also, optimized a bit.