The main purpose of this legislative text is to enhance the Nonprofit Security Grant Program, which is part of the Department of Homeland Security. The goal is to provide clearer guidelines and expand the types of security measures that nonprofit organizations can fund to protect themselves from potential threats. Key provisions of the legislation include allowing nonprofit organizations to use grant funds for hiring onsite security personnel and off-duty police officers.