GuiEnviroinment class improved.