Added wait option for upload ip address script.