Add support for indexing.