Slight changes to check_req_keys()
Slight changes to check_req_keys()