Add option to output rawdata as hexstring