Made big changes to the way static functions are structured in the model class.