Set up file saving.