Added base of card controller. Needs work.