Major tweaks and saving/loading of settings.