Added an overwrite option to add_entry.