Add 'type' to payload