Make hashmap functional.