Adding nodes with socket