Revert "Added the correct API"

This reverts commit 46d20d70ee73f461bcf0b1bbbf69b448a2fb1419.