Call get_keyvalue_list instead of duplicating the same code again.