Starting point for handling IMs