Refactored ByteChannel sources