Updating to use latest preferences methods