Added support for indices and media.