See above comment about adding recorded_vars to the perf_message here, instead of in `algorithm`.