Shouldn't this be before the loop?