Later, when we want to implement multithreading, we need to use separate variables. This is also a bit cleaner FossilOrigin-Name: b720083c13871db7a6b0f8573a91a7ac057d39d3a409df2232574bc001821e74