Add serialization to features