Fix logging
Fix send messages call