Updated sample program.