Replaced calls to fields in Preferences with appropriate getters and
setters.