Added TST prefix and session reset to code