Updated GLM kernel