Added card reader functionality