Skeleton for update function