Move this to unit test.