Use stm when possible