Simplified: prints to stdout and runs only once. This is probably easier to keep running.