[beta] Adds a named function