Added check for sub keys required for med check