Modified `add`, `addAll` method for Model.