Add logic to reject unsupported key generation fields; Removed debugging code;