Moved Slave.writeResult() to SlaveHelper.