Wait for script work