WIP: prefs basically working.