Preliminary code for add subtask and dynamic plumbing