Updated sample for SDK v1.2.7