Using better data structures.