Convert NIH math code to glm.
More tweaks.