Slight changes to check_req_keys()