Added paramiter to assembleData to format the last_payload.