Peppered code with metrics hooks.