Refactorings: moved LogPanel into here.