Inline this the two places it is used.