Unify scratch2 variable names a bit.
Extract and explain rate constants.