Added a (sort of improvised) settings module to handle upgrades.