Copied exchange2010 __init__ from txstate