Complete connection building！ Add some comments for code！