Added XML I/O