Removed warnings
Fixed sending messages