Properly keep track of file chunks