Logging tweaks.
Add session support.