Moved util.c to the main cpp