Improve debug messages.
Fix offset in Read().