Who is responsible for managing relationships with foreign countries?