updated max wait time to 5 min