Added partial code for remembering user preferences