More work on preferences manager.