Added a clear method to apply.Model.