Add helper method for models.