Adding code to read key data.