Start to use glm to do calculation.