New script for card reader