Changed hash to tree map. Because.