Rough implementation of the Coordinator.  Beginning of the Worker.