Added checks on input parameters.
Warnings only occur if the a value changes by more than EPS.