Add task schedule code. In progress.