Added preference management.