Fixed adding tasks to the workflow.