First attempt at saving settings, not functional though.