Adding support for XFM files