Refactor: make recorder a configuration options to fix tests.