Added for unit tests.