Create helper function for config updating