Adding foundation for card logic.