Moved preferences to prefs scope.
Fixed indentation.
Re-added reset all.