Adding a new function in convert.c to size the goal