Add guard for automated testing.