Adding serializing feature