Improved routing. Added log viewing.