Refactored to do subworkflows with N tasks instead of N receptors