Better treatment of task dependencies