Added support for custom card layouts.