Changed the GLM API for consistency