Make it compatible with offline testing.