More structured way of generating the payload