Starting to work on getting preferences to change correctly