Proxy functions with functions to modify arguments or spy