Few modifications for merging