Integrate serialisation into messages and snippets