Used for test.