Made some settings applied only if running GUI.