Update subfunction 4