Add binary serialization