Changed queue datatype to KeyValuePair<string, int>