This method is probably general enough to be added to the base class.