Adding convenience functions for reading from / writing to channel pairs