Added delegate for message sending