Bake in glm - no more external dependency