Trace pivot replacements.

See #188.