Integrating the stopFlag here is a really nice call.