This demonstrates what I corrected in the last version of the functions.c