Create a dependency function so that task that rely upon other tasks to be 100% completd prior to commencment of the next task.
Create this for
  1. Subtasks
  2. Lead tasks