c# if (mcRbx.Length > 0) { Process robloxProcess = mcRbx[0]; long ramUsageBytes = robloxProcess.WorkingSet64; double ramUsageMegabytes = (double)ramUsageBytes / (1024.0 * 1024.0); if (chart.Series.Count >= 2) { var ramUsageSeriesRed = (LineSeries)chart.Series[1]; if (ramUsageSeriesRed.Values.Count >= 5) { for (int i = 0; i < 4; i++) { ramUsageSeriesRed.Values[i] = ramUsageSeriesRed.Values[i + 1]; } ramUsageSeriesRed.Values[4] = new ObservablePoint(timing, ramUsageMegabytes); } else { ramUsageSeriesRed.Values.Add(new ObservablePoint(timing, ramUsageMegabytes)); } chart.Update(); } else { AppendTextToOutputTextBox("Something went wrong while trying to display the chart"); } } timing++; }