Added merge helper functions