Add option for setting payload size