; and (B) by inserting after paragraph (23) the following: (24) nonoperating individual means an individual on a vessel who— (A) does not perform— (i) watchstanding, automated engine room duty watch, navigation, or personnel safety functions; (ii) cargo handling functions, including any activity relating to the loading or unloading of cargo, the operation of cargo-related equipment (whether or not integral to the vessel), and the handling of mooring lines on the dock when the vessel is made fast or let go; (iii) vessel maintenance, including any repairs that can be performed by the vessel’s crew or a riding gang member; or (iv) safety, security, or environmental protection activities directly related to the operation of the vessel and normally conducted by the vessel’s crew; (B) does not serve as part of the crew complement required under section 8101 of this title; (C) does not serve as a riding gang member; (D) is not a member of the steward’s department; (E) is not a citizen or temporary or permanent resident of a country designated by the United States as a sponsor of terrorism or any other country that the Secretary, in consultation with the Secretary of State and the heads of other appropriate United States agencies, determines to be a security threat to the United States