Adding parameter for text or avro serialization