Removes unnecessary code from example program.