How to manage the pending activities of a client