Added logic for update packet