This is a part of #4763.
This is a part of #4763.