Improves Pane initialization.