Changed Wait to floating point. (untested)