Add Connection and PollThread implementation.