Code refactoring
Finds the earliest start time for a task
Minor refactoring
Minor refactoring