Add recalibrateConstants().

Hopefully, this is an improved version of #443