Needs to be in a loop.