Added card_size variable and parition size config.