Made has and get_keys functions.