Improve debuggability by adding .func/.endfunc around functions.