Add guard for spec runs.