Actually fixed the file saving!