Improving the system for defining api calls with non-controllable reuturn types.