Added simple sendMessage function. Beware: This will probably change, but it's a start.