You have to put it inside the loop, I think.