Experimented with moving output panel handling to its own class, but it wasn't working properly.