Use run_locally to detect errors and logging