Add tasktype to pubmessage