Added card erasing functionality.