Ongoing refactor.
Logging io.