Added snippets for serialization