Create dependencies between tasks