Moved processPendingRequests() to EOF