Tried implementing GLM, failed.