Adding initial card generation code