New: compilation of functions