Implemented variable payload size.