Moving Script into a model.