Deleted excessive looping