Simplified and optimised kinect example.