Listen for preferences changes.