Change CardThreshold to ResourceThreshold. Updated ResourceCard.