* Make mk_func re-entrant