Modified for testing.