For that purpose , the Agency shall cooperate with national safety authorities in accordance with Article 21 of Directive ( EU ) 2016/797 .