Viewlog refactor.