Added code to do deletions.