Added pause at the end of execution.