Save settings to useable variables