Added everything to make GLM work