Some progress on the hashmap, able to do some sort of a reverse lookup - pretty hackish