While a witness is under examination the magistrate must, upon motion of either of the parties, exclude all witnesses who have not been examined. He may also cause the witnesses to be kept separate, and to be prevented from conversing with each other until all witnesses have been examined.
Idaho Code § 19-810