Added methods to models.