This function is deprecated and will be remove in the next release.