Adding HAVING support to the model.