Full functionality for merging nodes. Beta version. Waiting review.