Merged client code for user interactions.