There's a lot happening in this block.  Could its entire function be clarified at all?