Make model.py take care of threading.