Added option for empty maps.