Now waits for input before exiting (may break on Windows)