How does messaging work?