Always look both ways before crossing the street, and if you’re in Honolulu, make sure you put away your phone. In July, Hawaii’s largest city passed legislation targeting “distracted walkers”—the first major U.S. city to do so. The law is a response to an uptick in accidents, and it applies to cellphones, laptops, digital cameras, and video games used while crossing the street. “We hold the unfortunate distinction of being a major city with more pedestrians being hit in crosswalks than almost any other city in the county,” Mayor Kirk Caldwell told Reuters. Honolulu police will begin enforcing the law this month, with fines of up to $99 for repeat offenders. Several states, including New Jersey, New York, and Illinois, have tried but failed to pass similar laws. Some Honolulu residents, like Ben Robinson, aren’t on board. “Scrap this intrusive bill,” he told the city council, and “provide more education to citizens about responsible electronics usage.”