Added wrap-params middle-ware

Only a minor change.