Moved annotation index to Document.