Rename scan -> stateful and remove diff.