Function compilation.