Changed to public methods and specified type for TreeMap.