Finished variable merging. Ready for SEG construction.