Reworked how settings are stored.