Added the hub and cross communication between the hub and agent.