Added protected functions for adding and removing clients.