DONE: Ernst create global state service