Add duplicate entry warning.