Add logging.
Fix log levels.
Improve logging a bit more.