Added boolean to manage card use