Implementing message dispatching