Fixed webAPI, function arguments updated to reflect previous code changes.