Could you please rewrite it to capture this discussion. The use case could be generalized a bit.