Added preference helper class