Added merge Function