Changed storage of user-related parameters: from fields in class to preferences.