Removed unwanted for loop