Fix: was not getting max wait time.