The salad chain Sweetgreen said Thursday that it would start accepting legal tender, amid a growing backlash to “cashless” stores around the country. The move came on the heels of Amazon Go’s confirmation this month that it, too, would begin taking cash.

Critics say cashless stores discriminate against people without access to bank accounts or credit cards, or who simply prefer to pay with cash. Some have also raised concerns about privacy and data security. Philadelphia and the state of New Jersey passed laws banning cashless stores last month, and New York, San Francisco, Chicago and Washington are considering similar bills.

Sweetgreen was at the forefront of the cashless trend when it announced in 2016 that it would accept only credit and debit cards. At the time, it said eliminating cash would make transactions faster, easier and safer for customers and employees.