Can we move this up to line 169 and re-use it on line 171?