Updated to use gsettings