I should have done this before I wrote the class.