Split into functions
Refactor fetch card info
fix spec