Cleaning up to now use glm while I work on other parts of my library.