Cleaning up the settings