Script to do the compiling and a tweak to the function template.