Add metadata reading.