Improved gui::Gui implementation.