. . . . "When it is necessary to cooperate with law enforcement, health, welfare and other state or federal agencies." . . . . .