Added clearing of Temp folder when applying settings