It's a little confusing to use an array for `docChanged` and then a single value for `updated` later.  It's the same effect (last one wins), so couldn't you just use a single value in both places?