Prevent sending of message when not required