Code related to Smart Card functionality