Factored out all indices, including the one for media files