Added some logic to send responses for routed messages.