Change self to $model