Moved private IO methods from module into X3IO class.