Possibly worth sticking this in a variable so it's not read on every iteration.