Edited delete helper to merge properly.