Added prefrences access functions