Added application_id and added message_broker_dispatch() logic.