add wait time control