Replaced Trace.WriteLine with Tools.WriteToTrace, added List<T>.Pop() to LCL