Adding state memory (avoid double launch)