Added multiple index file support.