Improved get_name function.
Improved API. (Passing lists and dicts)