Added updateEntry() function