Added logic for update packet in history