The I/O layer for MAGE.