Move to helper so we can see the logic clearly.