Adding analyze function for generated models.