Removing redundant loop.