Add task to scheduler