Update commit function to use saveSettings for future proofing