Reduced gc overhead. Removed iterators.