Added session tracking mechanism.