Use dict instead of [] for faster searching.