Now supports tuples for serialization and deserialization