Added serialization functionality!