Start working on scheduler. Modifying Task and TaskInstance