Rename comparePayload to compareBytes