Fix custom functions path, delete g function