Edited main for new addEntry