removed duplicate set_wait_time