Use the glm library.