Add Task, model and api functions