Used for Test.