Fixed syncWait to use Milliseconds.