Code from Tuesday 10/22. Needs to be tested after Broker component is
implemented.