Copy boiler plate code from Kinect samples