Updates update script for robustness.