Adding tasks to API.