Add serialisation class.