Changing serialisation for better comparing of files.