; and (2) require testing of any new chemical screening devices to understand the abilities and limitations of such devices relating to identifying narcotics at various purity levels before CBP commits to the acquisition of such devices. (b) Plan To ensure opioid detection equipment resiliency Not later than 180 days after the date of the enactment of this section, the Secretary of Homeland Security shall implement a plan for the long-term development of a centralized spectral database for chemical screening devices. Such plan shall address the following: (1) How newly identified spectra will be collected, stored, and distributed to such devices in their operational environment, including at ports of entry. (2) Identification of parties responsible for updates and maintenance of such database. 416. Authorization of the immigration advisory program (a) In general Subtitle B of title IV of the Homeland Security Act of 2002 ( 6 U.S.C. 211 et seq.), as amended by this title, is further amended by adding at the end the following new section: 420B. Immigration advisory program (a) In general There is authorized within U.S. Customs and Border Protection an immigration advisory program (in this section referred to as the program ) for United States Customs and Border Protection officers, pursuant to an agreement with a host country, to assist air carriers and security employees at foreign airports with review of traveler information during the processing of flights bound for the United States. (b) Activities In carrying out the program, U.S. Customs and Border Protection officers may— (1) be present during processing of flights bound for the United States; (2) assist air carriers and security employees with document examination and traveler security assessments; (3) provide relevant training to air carriers, security employees, and host-country authorities; (4) analyze electronic passenger information and passenger reservation data to identify potential threats