Preferences, automatic refresh, and other minor stuff