Added parameter tuning.