Adding some additoinal fucntionality for merging