In order to make this stateful, we'll want to add a `test` mode above this.