Coordinating Programs in the Network of Tasks Model