Updated sample file to SDK 2.