Store tasks in the index.