What's the purpose of this function? I'm not seeing it called from anywhere.