Starting writing writeChan.
Adding the console API.