Add state update, log/debug statements