Added saving data to a file