Added support for custom card (not card headers yet) layouts.