Removed lock and optimized thread usage.