Added pause before closing program.