Fixed transient name generation, added debug print