Refactor output display.