Added preference-related classes.