New APIs and test