Refactor: Add callback mode.