Extended TKState class to have an optional userInfo dictionary.
Declared additional constructor accepting userInfo as parameter and kept old constructor for backwards compatibility.