Pass global state around all over the place.