Amended the logging system to remove unused cards.