Changed update script to wait for executing next