Use arrays normal. No mutex.
Clean up.
Test.
Check sockets.