Various bug fixes and glm test.