; and (2) in subsection (h)— (A) in the matter preceding paragraph (1), as amended by this Act, by further amended by striking , and (K) , and inserting (K), and (M) ; (B) in the matter following paragraph (2)— (i) by striking torture. and inserting torture, or has been convicted of an aggravated felony. ; and (ii) by striking if either since the date of such admission the alien has been convicted of an aggravated felony or the alien and inserting if since the date of such admission the alien . (3) by adding new subsection (o) to read as follows— (o) Waiver for victims of domestic violence (1) In general The Secretary of Homeland Security or Attorney General is not limited by the criminal court record and may waive the application of paragraph (2)(Q)(i) (with respect to crimes of domestic violence and crimes of stalking) and (ii) in the case of an alien who has been battered or subjected to extreme cruelty and who is not and was not the primary perpetrator of violence in the relationship upon a determination that— (A) the alien was acting in self-defense; (B) the alien was found to have violated a protection order intended to protect the alien; or (C) the alien committed, was arrested for, was convicted of, or pled guilty to committing a crime— (i) that did not result in serious bodily injury; and (ii) where there was a connection between the crime and the alien’s having been battered or subjected to extreme cruelty. (2) Credible evidence considered In acting on applications under this paragraph, the Secretary of Homeland Security or Attorney General shall consider any credible evidence relevant to the application. The determination of what evidence is credible and the weight to be given that evidence shall be within the sole discretion of the Secretary of Homeland Security or Attorney General. . (b) Deportability; criminal offenses Section 237(a)(3)(B) of the Immigration and Nationality Act ( 8 U.S.C. 1227(a)(3)(B) ) is amended— (1) in clause (i), by striking the comma at the end and inserting a semicolon