How can I display a "wait" message while a process is running?