Initialize the map output function with NULL reference