Converted foreach w/ RemoveAll to for loop