Comments for doTuneMode and cleanup