Added logging of all sent messages