Updated to use Text and HashMap.