Speaker Paul D. Ryan said Thursday that a proposal to extend the one-year lobbying ban for retired members of Congress to five years — part of President-elect Donald Trump’s series of ethics reforms — is “dangerous.”

The Wisconsin Republican said during a CNN town hall that he agrees with the intent of preventing members of Congress from leaving the institution and immediately going into the private sector just to get rich. However, he noted there are other “unseen circumstances” that come with the lobbying ban.

“What if you want to become an advocate for the cancer society? What if you want, after you retired, to help your local hospital system and be on their board to support them and then go get legislation?” Ryan said.

“There are a lot of other unseen circumstances that can play into this and you’ve got to be careful about that,” the speaker added. “When people leave Congress, what’s wrong with them going out and advocating for causes they believe in?”

The proposal to extend the current one-year lobbying ban for members of Congress to five years is a part of a five-point ethics overhaul plan Trump released during his campaign as part of a pledge to “drain the swap” in Washington.