Writing STM state helpers. :fishing_pole_and_fish: