Request was being requried before each use, which was causing a timeout problems. Updated the code to use a single request object.