Clean ups and Settings via XML file.