Tried to implement the smart parser for add card function