What is this new block of code doing? Can the method be broken into two separate sections?