Added hex logging