I recommend you move this block of code under a new function and make a function call here instead.