Shouldn't this be outside the loop?