Better for unit testing.