Updated to dump the hex value of buffer