Working demo code.