Instead of `self.storage.pieces.length - 1`, I think this should be `self.storage.pieces.length` because in the end `numPieces` should === `self.storage.pieces.length`. Same with `numVerified`.