Removed unnecessary for loop.