SendMessage improvements