Added lifo queue and atomic processing of hash size.