Modified for local data collection, saved as xml format.