Added looping words to test.f