Added a new thread for serving initial authentication phase