I believe there is one function can do this.