Wondering if this could be in class Index instead (taking a filePrefix param)