Updated Broker Code