Fixed minor bugs.
Add log entry access for debugging.