Solved deadlocks and made throughput consistent (2 million / second for now).