Added models for pairs and messages