Switched to better Preferences manager. Optimized imports.