Added z-ordering to cards.