Added restricted serialization