Can you rename this variable to `finished` everywhere, since we set it to `true` even if we don't know whether or not a bucket is empty.