On-the-fly tuning of MMM1D