Moved functionality to user python. + Preferences.