Change to using a HashMap internally as much faster.