Implement the function of client manager.