Add logic for loading contacts and messages.