Added WeightedRequest class and weightedRequestQueue.