I was getting lost in braces. Probably implying this bit of code should go into a function. Will review.