small change
Added preferences infrastructure