STM generation is working