Added CardLayer class.