Refactored so that the model strings are defined outside the function running the jags models.