Added reading of widgets.
Simplified replicaset setup.