Changed signature of writeChanE