Added serialisation skeleton.