Updated to use new Pane objects.