Added a return value for max_payload_size