Honestly, I'm not understanding this addition, but keeping the old choose_payload call, which in other hand looks like isn't valid anymore because choose_payload has been changed (now it expects just one argument).