Updated the model to GLM