Flexible card generation