Refactor get_key and set_key to more apropriate get_value and set_value