Seperated serialisation from file saving so that save file is open for the minimum amount of time s