Why the change from const to var, here and elsewhere?