Fleshing out the statebot a bit.