Support foreground run.