The inefficiency of that old code was shameful.