Version 2 allows for negative binomial regression