Forgot ; in assigngear.
Remove unused line and added waituntil for the paramsarray