Update subfunction 7