Modified to use CoimotionSDK