Refactoring the request waiting algorithm.