Wait for connections before running.