Make StateStore global