Added code to tune on multiple measurements