Use TBQueue instead of TQueue to control memory use