JEFFERSON CITY, Mo. (AP) — Missouri lawmakers on Monday advanced a bill that would allow state and local governments to restrict access to public meetings during contagious illness outbreaks such as the coronavirus.

A House committee voted 12-2 for the legislation, which is aimed at reducing the spread of contagious viruses such as COVID-19 through large public gatherings.

The Centers for Disease Control and Prevention recommended Sunday that gatherings of 50 people or more be canceled or postponed across the country for the next eight weeks. The vast majority of people recover from the coronavirus in a matter of weeks.

Reporters could still access those meetings.

The legislation comes as the state Senate left a week early for its spring break over concerns about the spread of the coronavirus. The state House is still meeting but in a limited capacity.

Legislative leaders last week asked members of the public who are not directly involved in the legislative process, such as school groups, to avoid the Capitol.

The public can listen to House and Senate proceedings online. The House also livestreams many committee hearings.