Updated for panorama.
Added export for XML data.