Rewrote program.