Implement clipping of models in models.py.