Cleaned up card reader driver.