Added more code to the teammodel.