Mod GPFunctionRegistry() to take in an argument