Writing to file faster, xml changes, trending fix