Consider passing in `searchStream` as a separate parameter