Queuing implementation. Seems it isn't fast enough. Synchronized one is faster.