If you can move this outside the loop, that'd be better