Use correct function for new SDK