Accidentally left a while loop; ensured only one instance will run