Separated errors and slaveErrors.  First version with working slave support.