Create thread to accept connections