Added a new send method that accepts an appname and a pid