public IEnumerable<object> GenerateOutput() { var r = outputMsgs; outputMsgs = new List<object>(); return r; }