; (2) in subsection (a)(5)— (A) in subparagraph (B), in the matter preceding clause (i), by striking 4111 and inserting 4112 ; and (B) in subparagraph (E), by striking 4111 and inserting 4112 ; and (3) by adding at the end the following: (b) Rule of construction Nothing in this section shall be construed to— (1) prevent Federal or local law enforcement from detaining or arresting an individual who could otherwise be detained or arrested for an alleged violent offense; or (2) otherwise interfere with Federal or local law enforcement’s discretion to investigate legitimate threats to school safety. . (g) Activities To support the effective use of technology Section 4110 of the Elementary and Secondary Education Act of 1965 ( 20 U.S.C. 7281 ), as redesignated by subsection (a), is amended— (1) in subsection (a)— (A) in paragraph (5), by striking and after the semicolon; (B) in paragraph (6), by striking the period at the end and inserting ; and ; and (C) by adding at the end the following: (7) providing technology to improve school safety. ; and (2) in subsection (b)— (A) by striking Rule and all that follows through agency and inserting the following: Rule .— (1) In General A local educational agency