lua parameters function
By Randy Beier at Apr 02 2020
wait function rebuilt in lua
By Carolyn Ward at Feb 29 2020