The functions file you pasted only has 66 lines, how are we supposed to help?