Added id generator to file repository