Refactored request function in response to some wonky tests results.