Sorry, I misunderstood what was happening here. This approach seems good.