BaseTask.write() is added and used.