Add hook for message producing tasks.