Add automatic file saving.