Updated for pushCaptureBasics sample.