Improved meld function. prevented included copy of functional from altering function prototype