We had a discussion in person that we will keep the for loop for now for easier writing/reading until we are sure that it's worth putting effort into using map-reduce here.
==============================
Consider doing this part with mapping the workflow over detector names?
Originally posted by @nvaytet in #170 (comment)