Removing duplicate loop

There appeared to be a duplicate loop being run, so I merged the two.