Keep running the main processing loop while waiting for input.