Modify firetasks_ex to allow variable number of nodes.