More efficient map iteration.