Add variable timeToWait