Tweaked broadcast algorithm to work with GUI.
Finished.