This might be a good candidate for a helper method.