Implement client connection.