More careful definition of GLM