Cleaning up settings.