Adding in automatic file saving.