Starting a new thread for server