Inline this method since it is only used in one place.