Resolver in a loop