Used for testing.