Logfile locked for multiple threads
Implement threading to handle multiple clients