Combining this with the next two would save some duplication.