Started on state.
Added basic state, doesn't yet (re)send on (re)connect.
Added breakpoints in function and visualization.