This is used for test.