Integrating the sample message handler