Card system branch. WIP.