Added wait for keypress at end.