Some functions for settings preferences.