Fix potential channel write blocking. Add method comments.