Implement guarded task sequences close #4