Finalize the Link state machine, add session tracking class.