Additional debug output for parameter tuning.

Fixed overflow when passing parameters.