Added a conversion function to something like a hashmap