Work in progress to implement "GLM"
An approximation to the GLM, with poor results, unfortunately