Added IndexOption to make sure long file names are not truncated.