Converted to using sockets, about to try and fix droplet bug.
Fixed the problems, we think. Longer delays! broadcasting is slow. :(
Maybe working better. Added support to run_opt_phase for multiple directions. Only done rudimentary testing.