Rewrite hexmem, this affects log messages