U.S. health officials plan to endorse a common antibiotic as a morning-after pill that gay and bisexual men can use to try to avoid some increasingly common sexually transmitted diseases.

The proposed CDC guideline was released Monday, and officials will move to finalize it after a 45-day public comment period. With STD rates rising to record levels, “more tools are desperately needed,” said Dr. Jonathan Mermin of the Centers for Disease Control and Prevention.

The proposal comes after studies found some people who took the antibiotic doxycycline within three days of unprotected sex were far less likely to get chlamydia, syphilis or gonorrhea compared with people who did not take the pills after sex.