Adding optional debugging output on tuning.