Move out of class for testing.