Added selection serialization support