Added notes about preferences and avoiding leaks.