Instead of having a comment here (which seems to be necessary for the reader to understand the code), can you move this block of code to a well-name, well-documented method?