How does waiting for 100ms guarantee that the settings have been sent?  Isn't there a more certain way to check this rather than a seemingly arbitrary elapsed time?