Added correct wrapper to sendData