Added logic to generate proxy from card data.

Added the missing template matching.