Improved sendMessage