Sorry for the late reply.
For those playing along, an approach to tackling above can be found in Groovy post_gather script - where do I start? - #3 by aw282
Sorry for the late reply.
For those playing along, an approach to tackling above can be found in Groovy post_gather script - where do I start? - #3 by aw282