Updated the gateway sample to the latest beta