Add unused check_modified arguemnt to merge functions