Write tasks to file, wire up add-task function