Cleaning code.
Removed unnecessary loop.