Simplify serialisation.