Added zeroes in empty entries, managed to use numOfFiles