Created by: pengwangucla
Does not have a test outside in v2, but it works in my code. I don't know whether I need to add it manually.