Send results to the frontend as we go. Fix #3.