This seems out of place here, can it go up with the other "private" functions at the top of the file?