First version of batched error sending