AddEntry should return the added entry.