This function doesn't seem to get used.