Current implementation forces to iterate over all files after adding more files, this is obviously wrong and should be done better.