Costco is limiting shoppers in its warehouses to two people per membership card.

In a message to members on its website, the big-box retailer said the temporary measure was enacted “for your safety and the safety of our employees and other members, and to further assist with our social distancing efforts.”

The retailer had previously limited the volume of shoppers inside and put limits on popular household items including paper goods. Despite the changes, large crowds of shoppers were still navigating the aisles daily.

List: Which grocery stores have priority hours for elderly, disabled

Costco warehouses also have shortened their hours, closing at 6:30 p.m., Monday through Friday. Its gas stations are open 7:30 a.m. to 7 p.m. on weekdays and 6:30 p.m. on weekends.

The warehouse also offers early hours for at-risk senior shoppers, opening from 8 to 9 a.m. Tuesday through Thursday for members ages 60 and older and for those with physical impairments. The pharmacy is open during that early-bird hour, but the food court will not.

Walmart limits shoppers, too

Walmart still wants customers, just fewer of them at a time.

The nation’s largest retailer said it will now allow no more than five customers for each 1,000 square feet at a given time, roughly about 20% of the average store’s capacity.

To oversee the restriction, workers will mark a queue at a single-entry door, and direct arriving customers there, where they’ll be admitted one by one.

Walmart joins Target, Trader Joe’s and other chains in trying to limit the number of customers in their stores to curb the spread of the coronavirus.