Removed unnecessary for loop