Removed useless loop