Parameterizing wait_time.