Ported BaseCard to coffee