Avoid race condition in program execution.