Replaced Chan with TChan