Updated example program.