Not sure why this file is here. This function is also there in ug_guts.c... Think we should remove it from there?