Added second function to model.