Duplicate loop being run

There appeared to be a duplicate loop being run, so I merged the two. Hopefully, there wasn't a special reason to do that!