Added a debug flag to force a pause after the program completes.