This should be pulled out into a unit private method.