Put validation in map building.