Added preferences R/W of settings variables