Change from original code to OpenSorceSDK